package com.bstek.bdf2.protal.home;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.bstek.dorado.annotation.PropertyDef;

/**
 * ROLE与Protal映射关系表
 * 
*/

@Entity
@Table(name="MES_ROLE_PROTAL")
public class MesRoleProtal implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	@Id
    @Column(name = "ID", length = 32, nullable = false)
	@PropertyDef(label = "主键")
	private String id;
	 
	@Column(name = "ROLE_ID", length = 32)
	@PropertyDef(label = "部门ID")
	private String roleId;
	
	@Column(name = "PROTAL_ID", length = 32)
	@PropertyDef(label = "门户ID")
	private String protalId;
	
 
	@Column(name = "CREATE_TIME")
	@PropertyDef(label = "创建时间")
	private Date createTime;
	
	@Column(name = "CREATE_USER", length = 20)
	@PropertyDef(label = "创建人")
	private String createUser;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public String getProtalId() {
		return protalId;
	}

	public void setProtalId(String protalId) {
		this.protalId = protalId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	@Override
	public String toString() {
		return "MesRoleProtal [id=" + id + ", roleId=" + roleId + ", protalId=" + protalId + ", createTime="
				+ createTime + ", createUser=" + createUser + "]";
	}
	
	
	
 
 
	
	
 
 
	
}
